<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
 <head>
  <title>CSS Test: :active (basic test)</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/active/004.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
  <meta content="may interact" name="flags" />
  <style type="text/css">
   p, span { display: block; margin: 0; padding: 1em; color: navy; }
   .a :active { background: green; color: white; }
   .b *:active { background: green; color: white; }
   .c :active { background: green; color: white; }
   .d p:active { background: green; color: white; }
  </style>
 </head>
 <body>
    <p>Activating any of the text below may change its background to green. Test still passes if the text background does not change to green.</p>
  <div class="a"> <span>Activate this text.</span> </div>
  <div class="b"> <span>Activate this text.</span> </div>
  <div class="c"> <p>Activate this text.</p> </div>
  <div class="d"> <p>Activate this text.</p> </div>
 </body>
</html>
